{% extends 'desk/desk_base.html' %}
{% block title %}
    修改桌子信息
{% endblock %}
{% block content%}
    <ol class="breadcrumb">
      <li><a href="#">首页</a></li>
      <li><a href="#">桌子管理</a></li>
      <li class="active">修改桌子信息</li>
    </ol>

    <form class="form-horizontal" action="{{ url_for("desk.update_desk_info",desk_no=desk.desk_no)}}" method="POST">
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">桌子名</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="inputEmail3" name="desk_name" value="{{ desk.desk_name }}">
        </div>
      </div>
      <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">可容纳人数</label>
        <div class="col-sm-10">
          <input type="number" class="form-control" id="inputPassword3" name="men" value="{{ desk.men }}">
        </div>
      </div>
      <div>
          <input type="hidden" name="desk_no" value="{{ desk.desk_no }}">
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button type="submit" class="btn btn-default">修改桌子信息</button>
        </div>
      </div>
    </form>
    <ul>
        {% for error in get_flashed_messages() %}
            <li class="text-danger">{{ error }}</li>
        {% endfor %}
    </ul>
{% endblock %}